<template>
	<view class="seckillActivity">
		<!-- tab栏 -->
		<view class="tab_box flex-r-a-c">
			<view class="tab_item" :class="item.tabIndex == tabCurrent ? 'active' : ''" v-for="(item,index) in tabList"
				:key="index" :data-tabCurrent="item.tabIndex" @tap="tabChange">
				{{item.name}}
			</view>
		</view>
		<!-- 列表 -->
		<view class="list flex-r-b-c">
			<image src="" mode=""></image>
			<view class="list_f">
				<view class="list_f_t flex-r-s-c">
					<view class="name">中药洗发</view>
					<view class="text">品牌秒杀</view>
				</view>
				<view class="introduce one-line-ellipsis">已有66666人已拼成66666件</view>
				<view class="list_f_b flex-r-b-c">
					<view class="list_money flex-r-c-c">
						<view class="text">秒杀价</view>
						<view class="money">¥<text>599</text></view>
					</view>
					<view class="btn">直降11.1元</view>
<!-- 					<view class="remindBtn">提醒我</view>
					<view class="remindBtn">取消提醒</view> -->
				</view>
			</view>
		</view>
		
		
		<!-- 提醒我弹框 -->
		<u-popup v-model="isRemind" mode="center" width="90%" height="50%" border-radius="20">
			<view class="remindPopup popup">
				<image src="../../static/mine/txw.png" mode="widthFix"></image>
				<view class="text">秒杀前5分钟会提醒您</view>
				<view class="btn">确定</view>
			</view>
		</u-popup>
		<!-- 取消提醒弹框 -->
		<u-popup v-model="isCancel" mode="center" width="90%" height="50%" border-radius="20">
			<view class="cancelPopup popup">
				<image src="../../static/mine/qxtx.png" mode="widthFix"></image>
				<view class="text">提醒已取消，您可能会抢不到哟</view>
				<view class="btn">确定</view>
			</view>
		</u-popup>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isRemind: true, // 提醒弹框
				isCancel: false, // 取消弹框
				tabCurrent: 0,
				tabList:[{
					name: '14:00开抢中',
					tabIndex: 0
				},{
					name: '15:00开抢中',
					tabIndex: 1
				},{
					name: '16:00开抢中',
					tabIndex: 2
				}]
			};
		},
		methods:{
			// tab 切换
			tabChange(e){
				this.tabCurrent = e.currentTarget.dataset.tabcurrent
			}
		}
	}
</script>

<style lang="less">
	.seckillActivity{
		.tab_box {
			width: 100vw;
			height: 102rpx;
			background-color: #FFFFFF;
		
			.tab_item {
				font-size: 28rpx;
				position: relative;
				color: #7B7B7B;
			}
		
			.active {
				color: #557E6F;
				font-size: 32rpx;
		
				&::after {
					width: 100rpx;
					height: 10rpx;
					content: ' ';
					background-color: #557E6F;
					border-radius: 4rpx;
					position: absolute;
					top: 64rpx;
					left: 50%;
					transform: translateX(-50%);
				}
			}
		}
		
		
		
		.list{
			margin: 40rpx auto;
			width: 95%;
			height: auto;
			box-sizing: border-box;
			padding: 30rpx;
			background-color: #FFFFFF;
			border-radius: 30rpx;
			
			image{
				width: 236rpx;
				height: 194rpx;
				border-radius: 10rpx;
			}
			.list_f{
				width: 59%;
				line-height: 60rpx;
				.list_f_t{
					.name{
						font-size: 32rpx;
						font-weight: bold;
						color: #3B3B3B;
					}
					.text{
						width: 108rpx;
						height: 40rpx;
						line-height: 40rpx;
						text-align: center;
						background-color: #FF6C1D;
						color: #FFFFFF;
						font-size: 20rpx;
						font-weight: 500;
						border-radius: 10rpx;
						margin-left: 20rpx;
					}
				}
				.introduce{
					color: #959595;
					font-weight: 500;
					font-size: 24rpx;
				}
				//
				.list_f_b{
					height: 62rpx;
					border-radius: 10rpx;
					margin-top: 10rpx;
					.list_money{
						width: 55%;
						background-color: #F5F5F5;
						.text{
							color: #5D5D5D;
							font-size: 24rpx;
							font-weight: 500;
						}
						.money{
							margin-left: 8rpx;
							color: #FF6C1D;
							font-size: 34rpx;
							font-weight: 400;
							text{
								margin-left: 4rpx;
								display: inline-block;
								font-size: 38rpx;
								font-weight: bold;
							}
						}
					}
					.btn{
						width: 40%;
						border: 1px solid #FF6C1D;
						border-radius: 10rpx;
						line-height: 62rpx;
						text-align: center;
						color: #FF6C1D;
						font-size: 28rpx;
						font-weight: 300;
					}
					.remindBtn{
						width: 40%;
						background-color: #FF6C1D;
						border-radius: 10rpx;
						line-height: 62rpx;
						text-align: center;
						color: #FFFFFF;
						font-size: 28rpx;
						font-weight: bold;
					}
				}
			}
			
		}
		
		.popup{
			text-align: center;
			image{
				width: 80rpx;
				height: 80rpx;
				margin-top: 120rpx;
			}
			.text{
				width: 100%;
				font-size: 32rpx;
				font-weight: 500;
				color: #4B4B4B;
				margin-top: 40rpx;
			}
			.btn{
				width: 228rpx;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				background-color: #45806E;
				color: #FFFFFF;
				border-radius: 40rpx;
				margin: 80rpx auto;
			}
		}
	}
</style>
